import requests
import json
import jsonpath

# 登录
url = 'http://kumanxuan1.f3322.net:8096/MMS/Login/loginUser'
data ={'username':'admin','password':12345}
res = requests.post(url,data)
cookie = res.headers['Set-Cookie']
print(cookie)


url = 'http://kumanxuan1.f3322.net:8096/MMS/Client/GetClient'
data = {'cno':'1529'}
headers = {'cookie':cookie}
res1 = requests.post(url,data,headers=headers)
rel = res1.json()
print(rel)
res2 = jsonpath.jsonpath(rel,'$..mno')
print(res2)









